package com.core.other.S65;

/**
 * Created by admin on 2017/6/5.
 */
public class B {
    public static void main(String[] args) {

        B b = new B();
        b.testA();
        //changeA(a);

    }

    void testA(){
        A a = new A("a","b");
        System.out.println("mainA1" + a.toString());
        changeA(a);
        System.out.println("mainA2:" + a.toString());
    }
    A changeA(A a){
        A a2 = new A("a2","b2");
       // a = a2;
        a.setA("a3");
        System.out.println("changeA:" +a.toString());
        return a;
    }
}
